<?php

namespace App\Models;

use App\Traits\HasDateTimeFormatter;
use App\Traits\HasOrgCode;
use App\Traits\HasOrgRoot;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class WebsiteNews extends Model
{
    use HasFactory, HasOrgCode, HasOrgRoot, HasDateTimeFormatter;

    protected $table = "website_news";


    public function city() {
        return $this->hasOne(WebsiteCity::class, 'org_code', 'org_code');
    }
}
